package com.sanploy.manage.service.impl;

import com.sanploy.common.domain.SystemConfig;

import com.sanploy.manage.mapper.SysConfigMapper;
import com.sanploy.manage.service.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zhu yingzhi on 2017/10/17.
 */
@Service
public class SysConfigServiceImpl implements SysConfigService {

    @Autowired
    private SysConfigMapper sysConfigMapper;

    @Override
    public List<SystemConfig> getAll() {
        return sysConfigMapper.getAll();
    }

    @Override
    public int editConfig(SystemConfig systemConfig) {
        return sysConfigMapper.editConfig(systemConfig);
    }

    @Override
    public SystemConfig getConfigById(Long id) {
        return sysConfigMapper.getConfigById(id);
    }
}
